<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta content="width=device-width, initial-scale=1" name="viewport">
    <title>玉灵 QQ:7031633 Email:webrx@126.com</title>
    <style>
        button {
            border: none;
            width: 5px;
            height: 25px;
            opacity: .6;
        }

        button:hover {
            opacity: 1;
        }
    </style>
</head>

<body>
<script>
    if (localStorage.getItem('bgc') != null) {
        let c = localStorage.getItem('bgc')
        document.body.style.backgroundColor = `${c}`
    }
    for (let i = 0; i < 100; i++) {
        let c = `rgb(${Math.round(Math.random() * 255)},${Math.round(Math.random() * 255)},${Math.round(Math.random() * 255)})`
        let btn = `<button style="background-Color:${c}" onclick="document.body.style.backgroundColor = '${c}';localStorage.setItem('bgc','${c}')"></button>`
        document.write(btn)
    }
</script>
</body>
</html>
